/**
 * address模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/utils/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const orders = {
       

    addOrder(params: any) {
        return axios.post(`${base.orders}/addOrder`, qs.stringify(params));
    },
    getOrderById(params: any) {
        return axios.post(`${base.orders}/getOrderById`, qs.stringify(params));
    },
    addShoppingCart(params: any) {
        return axios.post(`${base.orders}/addShoppingCart`, qs.stringify(params));
    },
    getShoppingCartByUserId(params: any) {
        return axios.post(`${base.orders}/getShoppingCartByUserId`, qs.stringify(params));
    },
    deleteShoppingCartById(params: any) {
        return axios.post(`${base.orders}/deleteShoppingCartById`, qs.stringify(params));
    },
    editShoppingCart(params: any) {
        return axios.post(`${base.orders}/editShoppingCart`, qs.stringify(params));
    },
    addShoppingCartOrder(params: any) {
        return axios.post(`${base.orders}/addShoppingCartOrder`, qs.stringify(params));
    },
    getOrdersListByUserId(params: any) {
        return axios.post(`${base.orders}/getOrdersListByUserId`, qs.stringify(params));
    },
    deleteOrdersById(params: any) {
        return axios.post(`${base.orders}/deleteOrdersById`, qs.stringify(params));
    },
    getAllOrders(params: any) {
        return axios.post(`${base.orders}/getAllOrders`, qs.stringify(params));
    },
}

export default orders;